package com.jsbj.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsbj.user.entities.SysLoginRecord;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * <p>
 * 登录记录表 Mapper 接口
 * </p>
 *
 * @author jsbj
 * @since 2022-03-14
 */
@Mapper
public interface SysLoginRecordMapper extends BaseMapper<SysLoginRecord> {

    List<SysLoginRecord> recentVisits(@Param("tenantCode") String tenantCode);

    Integer selectzdlcs(@Param("tenantCode") String tenantCode);

    Integer selectzdlrs(@Param("tenantCode") String tenantCode);

    Integer selectdlsc(@Param("tenantCode") String tenantCode);

    List<Map<String, Objects>> selectSevenDay(@Param("tenantCode") String tenantCode);
}
